oleloadbitmap

hello,

if i had an bitmap in the attribute "Objekt Text" that code works correct.
b = oleLoadBitmap(Topoll,o."Object Text",true ,w, h); drawBitmap(Topoll, b, 0,0)

if i hab a new attribute named "Topologie" it dosent work.
b = oleLoadBitmap(Topoll,o."Topologie",true ,w, h); drawBitmap(Topoll, b, 0,0)

Can everybody help me.
SystemAdmin - Mon Aug 10 06:01:19 EDT 2009

Re: oleloadbitmap
llandale - Mon Aug 10 13:13:35 EDT 2009

You may need to define "Doesn't work" and may need to tell us your DOORS version.

Perhaps your new attribute isn't type 'Text' or it doesn't actually contain a bit-map.

Looking closer I see that the DXL manual 'oleLoadBitmap' command takes an "Object" parameter, not an attribute reference like 'o."Object Text"'. However, I see in the v9.1 doors.exe that there is indeed an 'oleLoadBitmap' command that takes an attr ref, but the 3rd parameter is an integer not a boolean. Don't know why you are not getting DXL interpret errors, but perhaps DXL knows to translate 'true' to an integer, which is '1'.

Anyway, Perhaps the 'bit map' in question is really a DOORS 'Picture' and not a DOORS 'OLE'. 'Pictures' are stored in the Object and there can be no more than one per Object; they are not stored in an Attribute such as OLEs, which can have many per attribute. Perhaps its possible the 'oleLoadBitmap' command sees your reference to 'Object Text', and knows to get 'THE' Picture from the Object, but when it sees 'Topologie' it doesn't know what you mean.

Not sure what else to tell you.

  • Louie

Re: oleloadbitmap
SystemAdmin - Tue Aug 11 02:47:15 EDT 2009

llandale - Mon Aug 10 13:13:35 EDT 2009
You may need to define "Doesn't work" and may need to tell us your DOORS version.

Perhaps your new attribute isn't type 'Text' or it doesn't actually contain a bit-map.

Looking closer I see that the DXL manual 'oleLoadBitmap' command takes an "Object" parameter, not an attribute reference like 'o."Object Text"'. However, I see in the v9.1 doors.exe that there is indeed an 'oleLoadBitmap' command that takes an attr ref, but the 3rd parameter is an integer not a boolean. Don't know why you are not getting DXL interpret errors, but perhaps DXL knows to translate 'true' to an integer, which is '1'.

Anyway, Perhaps the 'bit map' in question is really a DOORS 'Picture' and not a DOORS 'OLE'. 'Pictures' are stored in the Object and there can be no more than one per Object; they are not stored in an Attribute such as OLEs, which can have many per attribute. Perhaps its possible the 'oleLoadBitmap' command sees your reference to 'Object Text', and knows to get 'THE' Picture from the Object, but when it sees 'Topologie' it doesn't know what you mean.

Not sure what else to tell you.

  • Louie

Ok, i try to tell you my problem.

my DOORS Version is 8.3

The attribute "Topologie" is type "Text".

I want to display a pictute in a canvas or open as file.

The attach file an display scan. I hope it would help.

Willi
Attachments

attachment_14283944_scan.pdf

Re: oleloadbitmap
SystemAdmin - Tue Aug 11 07:06:29 EDT 2009

SystemAdmin - Tue Aug 11 02:47:15 EDT 2009
Ok, i try to tell you my problem.

my DOORS Version is 8.3

The attribute "Topologie" is type "Text".

I want to display a pictute in a canvas or open as file.

The attach file an display scan. I hope it would help.

Willi

I found the error.
It was an problem with my generated object pointer.
The funktion works correct.

Thanks for your help :)